﻿@using Microsoft.Ajax.Utilities
@model IEnumerable<DevWeb.Biztalk.DeploymentSettings.WebUI.Models.IntegrationVersionSettingsViewModel>

@{
    ViewBag.Title = "Index";
}

<h2>Index</h2>
@if (Model.Count() > 0)
{
    var integrationVersionViewModel = Model.FirstOrDefault();

    <p>Integration Name: @integrationVersionViewModel.IntegrationName</p>
    <p>Integration Version: @integrationVersionViewModel.Version</p>
    <p>ProductId: @integrationVersionViewModel.ProductId</p>
    <p>
    
    </p>
}
@Html.ActionLink("Create New Setting", "Create", new {id =ViewBag.id})
<table>
    <tr>
        
        <th>
            @Html.DisplayNameFor(model => model.ParameterName)
        </th>
       
        
        <th></th>
    </tr>

    @foreach (var item in Model)
    {
        <tr>
        
            <td>
                <i> @Html.DisplayFor(modelItem => item.ParameterName)</i>
            </td>
           
        
            <td>
                @Html.ActionLink("Edit", "Edit", new {id = item.Id}) |
           
                @Html.ActionLink("Delete", "Delete", new {id = item.Id})
                |
           
                @Html.ActionLink("Environment Values", "ParametersValues", new {id = item.Id})
            </td>
        </tr>
    }

</table>